<%--
  Created by IntelliJ IDEA.
  User: dcd
  Date: 2018/11/13
  Time: 4:32 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/taglibs.jspf" %>
<html>
<head>
    <meta name="decorator" content="list"/>
    <style>
        .table-condensed > tbody > tr > td, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > td, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > thead > tr > th {
            padding: 2px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="layui-col-sm5 layui-col-md5">
        <h3 style="margin-bottom: 10px">病理申请信息</h3
        <form:form id="requsitionForm" modelAttribute="data" method="post" class="layui-form"
                   action="">
            <table class="table table-bordered  table-condensed dataTables-example dataTable no-footer"
                   style="margin-left: 10px">
                <tr>
                    <td>申请单号:</td>
                    <td><form:input path="requisitionNo" readonly="true"/></td>
                </tr>
                <tr>
                    <td>病种类别:</td>
                    <td><form:input path="pathologyId" readonly="true"/></td>
                </tr>
                <tr>
                    <td>检查项目:</td>
                    <td><form:input path="reqItemNames" readonly="true"/></td>
                </tr>
                <tr>
                    <td>送检单位:</td>
                    <td><form:input path="reqReceiveOrgId" readonly="true"/></td>
                </tr>
                <tr>
                    <td>送检科室:</td>
                    <td><form:input path="reqDeptName" readonly="true"/></td>
                </tr>
                <tr>
                    <td>送检医生:</td>
                    <td><form:input path="reqDoctorName" readonly="true"/></td>
                </tr>

                <tr>
                    <td>住院号:</td>
                    <td><form:input path="reqPatientNumber" readonly="true"/></td>
                </tr>
                <tr>
                    <td>姓名:</td>
                    <td><form:input path="reqPatientName" readonly="true"/></td>
                </tr>
                <tr>
                    <td>在院方式:</td>
                    <td><form:input path="reqPatientType" readonly="true"/></td>
                </tr>
                <tr>
                    <td>病区:</td>
                    <td><form:input path="reqWardName" readonly="true"/></td>
                </tr>
                <tr>
                    <td>床位号:</td>
                    <td><form:input path="reqBedNum" readonly="true"/></td>
                </tr>
                <tr>
                    <td>性别:</td>
                    <td><form:input path="reqPatientSex" readonly="true"/></td>
                </tr>
                <tr>
                    <td>年龄:</td>
                    <td><form:input path="reqPatientAge" readonly="true"/></td>
                </tr>
            </table>
        </form:form>
    </div>
    <div class="layui-col-sm7 layui-col-md7">
        <h3 style="margin-bottom: 10px">送检材料信息</h3>
        <c:if test="${pathologyId == 1}">
            <grid:grid id="requisitionGrid" url="${appPath}/preProcessing/inReceive/getDetailsList" queryGroup="3"
                       customHeight="20">
                <grid:column label="apply.cutting.part" name="reqmSampParts"/>
                <grid:column label="inspection.materials" name="reqmMaterialName"/>
                <grid:column label="apply.reqmMaterialId" name="reqMaterialId"/>
                <grid:column label="" name="id" hidden="true" query="true" queryMode="hidden"
                             queryValue="${id}"/>
                <grid:column label="" name="pathologyId" hidden="true" query="true" queryMode="hidden"
                             queryValue="${pathologyId}"/>
            </grid:grid>
        </c:if>
        <c:if test="${pathologyId == 2}">
            <c:forEach items="${fieldNurseList}" var="list">
                ${list.reqfElementName}
            </c:forEach>
        </c:if>
    </div>
</div>
</body>
</html>
